package com.ruoyi.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品SPU对象 product_spu
 *
 * @author ruoyi
 * @date 2025-03-15
 */

public class ProductSpu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** SPU ID */
    private Long id;

    /** 是否标品（标品 非标） */
    @Excel(name = "是否标品", readConverterExp = "标=品,非=标")
    private String isStandard;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;


    @Excel(name = "产地")
    private String origin;


    /** SPU 编码（唯一标识） */
    @Excel(name = "SPU 编码", readConverterExp = "唯一标识")
    private String spuCode;

    /** 商品类目ID */
    @Excel(name = "商品类目ID")
    private String categoryId;

    private List<Long> categoryIds;

    /** 商品一级类目名称 */
    @Excel(name = "商品一级类目名称")
    private String productCategoryLevel1Name;

    /**
     * 美团sku
     */
    private List<ProductSku> productSkus;

//    /**
//     * 自动映射
//     */
//    private List<ProductSku> productSku;
    /**
     * 美团id
     */
    private List<Long> meituanAttr;

    /** 商品二级类目名称 */
    @Excel(name = "商品二级类目名称")
    private String productCategoryLevel2Name;

    /** 商品三级类目名称 */
    @Excel(name = "商品三级类目名称")
    private String productCategoryLevel3Name;

    /** 美团类目ID */
    @Excel(name = "美团类目ID")
    private String meituanChannelId;

    /** 美团渠道一级类目 */
    @Excel(name = "美团渠道一级类目")
    private String meituanChannelLevel1;

    /** 美团渠道二级类目 */
    @Excel(name = "美团渠道二级类目")
    private String meituanChannelLevel2;

    /** 美团渠道三级类目 */
    @Excel(name = "美团渠道三级类目")
    private String meituanChannelLevel3;

    /** 品牌名称 */
    @Excel(name = "品牌名称")
    private String brand;

    /** 商品主图 */
    @Excel(name = "商品主图")
    private String mainImage;

    /** 建议展示包装 */
    @Excel(name = "建议展示包装")
    private String mainImageTwo;

    /** 建议展示原料 */
    @Excel(name = "建议展示原料")
    private String mainImageThree;

    /** 封面视频 */
    @Excel(name = "封面视频")
    private String coverVideo;

    /** 商品属性（如颜色、尺寸等） */
    @Excel(name = "商品属性", readConverterExp = "如=颜色、尺寸等")
    private String attributes;

    /** 商品卖点 */
    @Excel(name = "商品卖点")
    private String sellingPoints;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String description;

    /** 状态（1上架 0下架） */
    @Excel(name = "状态", readConverterExp = "1=上架,0=下架")
    private Long status;

    /** 删除标志（0存在 2删除） */
    private String delFlag;

//    public List<ProductSku> getProductSku() {
//        return productSku;
//    }
//
//    public void setProductSku(List<ProductSku> productSku) {
//        this.productSku = productSku;
//    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIsStandard() {
        return isStandard;
    }

    public void setIsStandard(String isStandard) {
        this.isStandard = isStandard;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getSpuCode() {
        return spuCode;
    }

    public void setSpuCode(String spuCode) {
        this.spuCode = spuCode;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public List<Long> getCategoryIds() {
        return categoryIds;
    }

    public void setCategoryIds(List<Long> categoryIds) {
        this.categoryIds = categoryIds;
    }

    public String getProductCategoryLevel1Name() {
        return productCategoryLevel1Name;
    }

    public void setProductCategoryLevel1Name(String productCategoryLevel1Name) {
        this.productCategoryLevel1Name = productCategoryLevel1Name;
    }

    public List<ProductSku> getProductSkus() {
        return productSkus;
    }

    public void setProductSkus(List<ProductSku> productSkus) {
        this.productSkus = productSkus;
    }

    public List<Long> getMeituanAttr() {
        return meituanAttr;
    }

    public void setMeituanAttr(List<Long> meituanAttr) {
        this.meituanAttr = meituanAttr;
    }

    public String getProductCategoryLevel2Name() {
        return productCategoryLevel2Name;
    }

    public void setProductCategoryLevel2Name(String productCategoryLevel2Name) {
        this.productCategoryLevel2Name = productCategoryLevel2Name;
    }

    public String getProductCategoryLevel3Name() {
        return productCategoryLevel3Name;
    }

    public void setProductCategoryLevel3Name(String productCategoryLevel3Name) {
        this.productCategoryLevel3Name = productCategoryLevel3Name;
    }

    public String getMeituanChannelId() {
        return meituanChannelId;
    }

    public void setMeituanChannelId(String meituanChannelId) {
        this.meituanChannelId = meituanChannelId;
    }

    public String getMeituanChannelLevel1() {
        return meituanChannelLevel1;
    }

    public void setMeituanChannelLevel1(String meituanChannelLevel1) {
        this.meituanChannelLevel1 = meituanChannelLevel1;
    }

    public String getMeituanChannelLevel2() {
        return meituanChannelLevel2;
    }

    public void setMeituanChannelLevel2(String meituanChannelLevel2) {
        this.meituanChannelLevel2 = meituanChannelLevel2;
    }

    public String getMeituanChannelLevel3() {
        return meituanChannelLevel3;
    }

    public void setMeituanChannelLevel3(String meituanChannelLevel3) {
        this.meituanChannelLevel3 = meituanChannelLevel3;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getMainImage() {
        return mainImage;
    }

    public void setMainImage(String mainImage) {
        this.mainImage = mainImage;
    }

    public String getMainImageTwo() {
        return mainImageTwo;
    }

    public void setMainImageTwo(String mainImageTwo) {
        this.mainImageTwo = mainImageTwo;
    }

    public String getMainImageThree() {
        return mainImageThree;
    }

    public void setMainImageThree(String mainImageThree) {
        this.mainImageThree = mainImageThree;
    }

    public String getCoverVideo() {
        return coverVideo;
    }

    public void setCoverVideo(String coverVideo) {
        this.coverVideo = coverVideo;
    }

    public String getAttributes() {
        return attributes;
    }

    public void setAttributes(String attributes) {
        this.attributes = attributes;
    }

    public String getSellingPoints() {
        return sellingPoints;
    }

    public void setSellingPoints(String sellingPoints) {
        this.sellingPoints = sellingPoints;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("isStandard", getIsStandard())
                .append("name", getName())
                .append("spuCode", getSpuCode())
                .append("categoryId", getCategoryId())
                .append("productCategoryLevel1Name", getProductCategoryLevel1Name())
                .append("productCategoryLevel2Name", getProductCategoryLevel2Name())
                .append("productCategoryLevel3Name", getProductCategoryLevel3Name())
                .append("meituanChannelId", getMeituanChannelId())
                .append("meituanChannelLevel1", getMeituanChannelLevel1())
                .append("meituanChannelLevel2", getMeituanChannelLevel2())
                .append("meituanChannelLevel3", getMeituanChannelLevel3())
                .append("brand", getBrand())
                .append("mainImage", getMainImage())
                .append("mainImageTwo", getMainImageTwo())
                .append("mainImageThree", getMainImageThree())
                .append("coverVideo", getCoverVideo())
                .append("attributes", getAttributes())
                .append("sellingPoints", getSellingPoints())
                .append("description", getDescription())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
